package com.homework3;

import java.lang.annotation.*;


/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: java泛型
 * @date :  2022-10-26 17:17
 **/
public class MyOne {
    public static void main(String[] args) {
        MyOne3 myOne3 = new MyOne3();
        myOne3.test();
    }
}
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@interface MyOne1{
    String name() default "河南";
    String[] check();
    My my();//枚举（枚举其实就是一个常量）
    MyOne2 b();//注解类型的属性
}
@interface MyOne2{
    String name();
}
enum My{
    TYPE,AVG,NAME;
}
@MyOne1(check = {"吃饭","游泳"},my = My.AVG,b=@MyOne2(name = "nnn"))
class MyOne3{
    public void test(){
        System.out.println("~~~~~~~~~~");
    }
}